hysop.operator.base.enstrophy module¶
- class hysop.operator.base.enstrophy.EnstrophyBase(vorticity, enstrophy, WdotW, rho, rho_0, variables, name=None, pretty_name=None, **kwds)[source]¶
Bases:
object
Common implementation interface for enstrophy.
Initialize a enstrophy operator operating on CartesianTopologyDescriptors.
- vorticity: Field
Input continuous vorticity field.
- enstrophy: ScalarParameter
Enstrophy scalar output parameter.
- rho: Field, optional
Input continuous density field, if not given, defaults to 1.0 on the whole domain.
- rho_0: float, optional
Reference density, defaults to 1.0.
- WdotW: Field, optional
Output continuous field, will contain W.W (term before integration). If WdotW is given, WdotW will contain W.W else this will be a temporary field only usable during this operator’s apply method. Should have nb_components=1 and the same domain and discretization as the vorticity.
- variables: dict
dictionary of fields as keys and topologies as values.
- kwds:
Keywords arguments that will be passed towards implementation poisson operator __init__.